package com.hengpeng.itfin.persist;

import java.util.Date;
import java.util.List;

import com.hengpeng.common.persist.NestedSimplyDao;
import com.hengpeng.itfinbase.en.RewardRebateStatus;
import com.hengpeng.itfinbase.persist.RewardRebate;

public interface RebateDao extends NestedSimplyDao<RewardRebate> {
    /**
     * 根据状态获取返利信息
     * 
     * @param status
     * @param fetchSize
     * @return
     */
    public List<RewardRebate> findRewardRebateByStatus(RewardRebateStatus status, int fetchSize);

    /**
     * 更新返利状态
     * 
     * @param id
     * @param oldStatus
     * @param newStatus
     * @param updateTime
     * @return
     */
    public int updateStatus(long id, RewardRebateStatus oldStatus, RewardRebateStatus newStatus, Date updateTime);

}
